<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html class="foo">
<head>
<title>YUI Seed Tests</title>
</head>
<body class="yui3-skin-sam">

<div id="log"></div>

<div id="tester" style="visibility: hidden;">
    <span>test</span>
    <span>test</span>
    <span>test</span>
</div>

<span id="test"></span>
<script>
var YUI = {};
</script>
<!-- This is the main test file, notice it's using the `yui-base` seed file
without Loader on the page, so Loader is fetched before tests are executed. -->
<script type="text/javascript" src="../../../../build/yui-core/yui-core-coverage.js"></script>
<script type="text/javascript" src="../../../../build/get/get.js"></script>
<script type="text/javascript" src="../../../../build/features/features-coverage.js"></script>
<script type="text/javascript" src="../../../../build/intl-base/intl-base-coverage.js"></script>
<script type="text/javascript" src="../../../../build/yui-log/yui-log-coverage.js"></script>
<script type="text/javascript" src="../../../../build/yui-later/yui-later-coverage.js"></script>
<script type="text/javascript" src="../../../../build/loader/loader.js"></script>

<script type="text/javascript">
YUI.add('yui', function (Y, NAME) {}, '@VERSION@', {"use": ["get", "features", "intl-base", "yui-log", "yui-later"]});

YUI.GlobalConfig = {
    globalConfig: true,
    modules: {
        'global-mod': {
            fullpath: './assets/globalmod.js'
        }
    },
    groups: {
        //Just for code coverage..
        noop: {
            modules: {
                noop: {
                    fullpath: './noop.js'
                }
            }
        }
    }
};

var YUI_config = {
    combine: false,
    base: '../../../../build/',
    loaderPath: 'loader/loader.js',
    gconfig: true,
    core: ['get', 'features','intl-base','yui-log','yui-later','loader-base','loader-rollup','loader-yui3' ],
    gfilter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'raw'
};

YUI({
    coverage: [ 'yui' ],
    allowRollup: false,
    logExclude: {Dom: true, Selector: true, Node: true, attribute: true, base: true, event: true, widget: true },
    filter: YUI_config.gfilter,
    modules: {
        'array-test': {
            fullpath: './assets/array-test.js',
            requires: ['test']
        },
        'object-test': {
            fullpath: './assets/object-test.js',
            requires: ['test']
        },
        'lang-test': {
            fullpath: './assets/lang-test.js',
            requires: ['test']
        },
        'lang-xframe-test' : {
            fullpath: './assets/lang-xframe-test.js',
            condition: {
                name : 'lang-xframe-test',
                trigger : 'lang-test',
                test : function(Y) {
                    return !(Y.UA.nodejs);
                }
            },
            requires: ['test']
        },
        'seed-tests': {
            fullpath: './assets/seed-tests.js',
            requires: [ 'test']
        },
        'core-tests': {
            fullpath: './assets/core-tests.js',
            requires: ['classnamemanager', 'node']
        },
        'es-modules-test': {
            fullpath: './assets/es-modules-test.js'
        },

        'config-test': {
            fullpath: './assets/config-test.js'
        },

        'later-test': {
            fullpath: './assets/later-test.js'
        },
        'browser-tests': {
            fullpath: './assets/browser-tests.js'
        },

        'namespace-test': {
            fullpath: './assets/namespace-test.js'
        },
        'ua-data': {
            fullpath: './assets/ua-data.js'
        },
        'ua-yui-data': {
            fullpath: './assets/ua-yui-data.js',
            requires: [ 'ua-data' ]
        },
        'ua-tests': {
            fullpath: './assets/ua-tests.js',
            requires: [ 'ua-data', 'ua-yui-data', 'test' ]
        }

    }
}).use('ua-tests', 'seed-tests', 'core-tests', 'es-modules-test', 'config-test', 'later-test', 'namespace-test', 'array-test', 'object-test', 'lang-test', 'test-console', 'test', function(Y) {
    new Y.Test.Console().render('#log');

    //This is a YUITest hack to rename this test for reporting
    Y.Test.Runner.setName('YUI: Coverage');
    Y.Test.Runner.run();
});

</script>
</body>
</html>
